package com.biscuit.page.basicservice.websocket.ai_chat;

import com.volcengine.ark.runtime.model.completion.chat.ChatCompletionChunk;
import io.reactivex.Flowable;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import javax.websocket.Session;

/**
 * @author biscuit
 * @create 2024年08月01日 9:26
 */
@Getter
@Setter
@Builder
public class AiChatSessionWebSocketContext {

    // websocket 会话对象
    private Session session;

    // ai 聊天会话ID
    private Long sessionId;

    // 响应结果
    private StringBuilder result;

    // 异步响应对象，用于中止生成
    private Flowable<ChatCompletionChunk> flowable;

}
